package cn.t.dto.order.base;

import cn.t.core.mode.PageInfoDTO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * @author l
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class VBaseDTO<T, E> implements Serializable {
    private T dataMain;
    private PageInfoDTO<E> pageDetail;
    private List<E> detail;
    private Map<Integer, List<E>>  rotatingDetailMap;
    public VBaseDTO(T dataMain, List<E> detail) {
        this.dataMain = dataMain;
        this.detail = detail;
    }
    public VBaseDTO(T dataMain, Map<Integer, List<E>> rotatingDetailMap )  {
        this.dataMain = dataMain;
        this.rotatingDetailMap = rotatingDetailMap;
    }
}
